In MC when you save the gcode there is a checkmark that says "include bed level" or something to that effect - check that